﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Dal.Migrations
{
    public partial class v10 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "orderFormA",
                columns: table => new
                {
                    Oid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Ouid = table.Column<int>(type: "int", nullable: false),
                    Onumber = table.Column<int>(type: "int", nullable: false),
                    Oprice = table.Column<int>(type: "int", nullable: false),
                    countprice = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_orderFormA", x => x.Oid);
                });

            migrationBuilder.CreateTable(
                name: "orderFormB",
                columns: table => new
                {
                    Fid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Faid = table.Column<int>(type: "int", nullable: false),
                    Fcid = table.Column<int>(type: "int", nullable: false),
                    Fsun = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_orderFormB", x => x.Fid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "orderFormA");

            migrationBuilder.DropTable(
                name: "orderFormB");
        }
    }
}
